# sbc_usage.py
# 一般不单独使用，而是作为想的一部分。
from mapping.numLst2idx import GuaConverter
from constants import BAGUA,BAGUA_TO_NATURE
from core.StemBranch import StemBranchCalculator
from core.LiuYao import LiuYaoPlace


if __name__ == '__main__':
    coin_num_lst = [1, 0, 2, 1, 0, 3]
    have_hide = True

    coinNum = ','.join(list(map(str, coin_num_lst)))
    lyp = LiuYaoPlace.from_params(coinNum)
    lyp.place(is_contain_gan=True,output=True)

    sbc = StemBranchCalculator(coin_num_lst, have_hide)
    print('干的序数矩阵',sbc.to_gan())
    print('支的序数矩阵',sbc.to_zhi())
    print('只要本宫卦（伏藏）的掩码',sbc.hide_mask)
    print('整体的掩码',sbc.get_mask())
